﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="frm_ProfitList.aspx.cs" Inherits="SaleSystem.Analysis.frm_ProfitList" %>

<%@ Register assembly="DevExpress.XtraCharts.v8.2.Web, Version=8.2.2.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5" namespace="DevExpress.XtraCharts.Web" tagprefix="dxchartsui" %>
<%@ Register assembly="DevExpress.XtraCharts.v8.2, Version=8.2.2.0, Culture=neutral, PublicKeyToken=49d90c14d24271b5" namespace="DevExpress.XtraCharts" tagprefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <ext:PageManager runat="server" ID="pagemanager1" />
        <ext:SimpleForm runat="server" ID="simpleform1" BodyPadding="5px" EnableBackgroundColor="true" ShowHeader="false" >
            <Toolbars>
                <ext:Toolbar>
                    <Items>
                        <ext:Button runat="server" ID="bnAnalyze" Icon="ChartBar" Text="统计" OnClick="bnAnalyze_Click" ValidateForms="simpleform1" EnableAjax="false"></ext:Button> 
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:DropDownList runat="server" ID="ddl_Type" Label="分析类型"   Width="200px" DataTextField="Name" DataValueField="Id" Required="true" AutoPostBack="true" OnSelectedIndexChanged="ddl_Type_SelectedIndexChanged" >
                </ext:DropDownList>
                <ext:DatePicker runat="server" ID="dp_StartTime" Required="true" ShowRedStar="true" Label="开始时间" DateFormatString="yyyy-MM-dd" Width="200px"></ext:DatePicker>
                <ext:DatePicker runat="server" ID="dp_EndTime" Required="true" ShowRedStar="true" Label="结束时间" DateFormatString="yyyy-MM-dd" Width="200px" CompareControl="dp_StartTime" CompareOperator="GreaterThanEqual" CompareType="String" CompareMessage="结束日期必须大于等于开始日期！"></ext:DatePicker>
                <ext:CheckBox runat="server" ID="cb_Data"  Text="显示数据" AutoPostBack="true" OnCheckedChanged="cb_Data_Changed"></ext:CheckBox>
            </Items>
        </ext:SimpleForm>
       <ext:Form runat="server" ID="form3" EnableBackgroundColor="true"  ShowHeader="true" ShowBorder="true" BodyPadding="5px"  Title="图形选项" Icon="ChartBar" >
            <Rows>
                <ext:FormRow>
                <Items>
                    <ext:RadioButtonList runat="server" ID="rbl_Type" Label="图形类型" Width="300px" OnSelectedIndexChanged="rbl_Type_SelectedIndexChanged" AutoPostBack="true" EnableAjax="false" >
                        <ext:RadioItem Text="3D柱状图" Selected="true" Value="1" />
                        <ext:RadioItem Text="饼图" Value="2" />
                        <ext:RadioItem Text="折线图" Value="3" />                        
                    </ext:RadioButtonList>
                </Items>                
                </ext:FormRow>
                <ext:FormRow>
                    <Items>                    
                     <ext:RadioButtonList runat="server" ID="rbl_Item" Label="分析项" Width="300px" OnSelectedIndexChanged="rbl_Type_SelectedIndexChanged" AutoPostBack="true" EnableAjax="false">
                        <ext:RadioItem Text="销售额" Selected="true" Value="Sales" />
                        <ext:RadioItem Text="毛利润" Value="MainProfit" />
                        <ext:RadioItem Text="纯利润" Value="Profit" />                        
                    </ext:RadioButtonList>
                    </Items>
                </ext:FormRow> 
                <ext:FormRow>
                    <Items>
                     <ext:ContentPanel ID="ContentPanel1" EnableAjax="false" runat="server" ShowHeader="false">
                 <dxchartsui:WebChartControl ID="WebChartControl1" runat="server" Height="400px" Width="700px" DiagramTypeName="SimpleDiagram3D" ClientInstanceName="chart" >               







<Titles>
                             







<cc1:ChartTitle Text="Area of Countries">
                             </cc1:ChartTitle>
                             







<cc1:ChartTitle Alignment="Far" Dock="Bottom" Font="Tahoma, 8pt" Text="From www.nationmaster.com"
                                 TextColor="Gray">
                             </cc1:ChartTitle>
                         







</Titles>
                         















<FillStyle FillOptionsTypeName="SolidFillOptions">
                             







<Options HiddenSerializableString="to be serialized" />
                         







</FillStyle>
                         










<BorderOptions Visible="False" />
                         















<Diagram RotationAngleX="-35" RotationAngleZ="15" RotationOrder="ZXY" RotationType="UseAngles" ZoomPercent="110">
                         </Diagram>
                         















<SeriesTemplate LabelTypeName="SideBySideBarSeriesLabel" PointOptionsTypeName="PointOptions"
                             SeriesViewTypeName="SideBySideBarSeriesView">
                             















<PointOptions HiddenSerializableString="to be serialized">
                             </PointOptions>
                             















<Label HiddenSerializableString="to be serialized" OverlappingOptionsTypeName="OverlappingOptions">
                                 







<FillStyle FillOptionsTypeName="SolidFillOptions">
                                     







<Options HiddenSerializableString="to be serialized" />
                                 







</FillStyle>
                             







</Label>
                             







<View HiddenSerializableString="to be serialized">
                             </View>
                             















<LegendPointOptions HiddenSerializableString="to be serialized">
                             </LegendPointOptions>
                         







</SeriesTemplate>
                         




<SeriesSerializable>
                             







<cc1:Series LabelTypeName="Pie3DSeriesLabel" Name="Series 1" PointOptionsTypeName="PiePointOptions"
                                 SeriesViewTypeName="Pie3DSeriesView">
                                 <points>
 </points>
                                 







<view hiddenserializablestring="to be serialized"></view>
                                 















<label columnindent="20" font="Tahoma, 8pt, style=Bold" hiddenserializablestring="to be serialized" antialiasing="True" overlappingoptionstypename="OverlappingOptions" position="Radial">
                                     







<fillstyle filloptionstypename="SolidFillOptions">
 







<Options HiddenSerializableString="to be serialized"></Options>
 







</fillstyle>
                                     















<overlappingoptions indent="3" resolveoverlapping="True"></overlappingoptions>
                                 







</label>
                                 















<pointoptions hiddenserializablestring="to be serialized" pointview="ArgumentAndValues">
 







<ValueNumericOptions Format="Percent" Precision="0"></ValueNumericOptions>
 







</pointoptions>
                                 















<legendpointoptions hiddenserializablestring="to be serialized" pointview="ArgumentAndValues">
 







<ValueNumericOptions Format="Percent" Precision="0"></ValueNumericOptions>
 







</legendpointoptions>
                             







</cc1:Series>
                         







</SeriesSerializable>
                     







</dxchartsui:WebChartControl>
                
 

                <dxchartsui:WebChartControl ID="WebChartControl2" runat="server" 
            DiagramTypeName="XYDiagram3D" Height="200px" Width="300px">
            
             

<Legend>
<Border Visible="False"></Border>
</Legend>


 

<SeriesTemplate LabelTypeName="Bar3DSeriesLabel" 
                PointOptionsTypeName="PointOptions" 
                SeriesViewTypeName="SideBySideBar3DSeriesView">
                
                 

<View HiddenSerializableString="to be serialized">
                </View>

<Label HiddenSerializableString="to be serialized" 
                    OverlappingOptionsTypeName="OverlappingOptions" Visible="True">
                    
                






<FillStyle FillOptionsTypeName="SolidFillOptions">
                        
                    






<Options HiddenSerializableString="to be serialized" />







</FillStyle>







</Label>

<PointOptions HiddenSerializableString="to be serialized">
                </PointOptions>

<LegendPointOptions HiddenSerializableString="to be serialized">
                </LegendPointOptions>







</SeriesTemplate>
            




<SeriesSerializable>
<cc1:Series Name="Series 1" LabelTypeName="Bar3DSeriesLabel" PointOptionsTypeName="PointOptions" SeriesViewTypeName="SideBySideBar3DSeriesView">
<View HiddenSerializableString="to be serialized"></View>

<Label HiddenSerializableString="to be serialized" Visible="False" OverlappingOptionsTypeName="OverlappingOptions">
<FillStyle FillOptionsTypeName="SolidFillOptions">
<Options HiddenSerializableString="to be serialized"></Options>
</FillStyle>
</Label>

<PointOptions HiddenSerializableString="to be serialized"></PointOptions>

<LegendPointOptions HiddenSerializableString="to be serialized"></LegendPointOptions>
</cc1:Series>
<cc1:Series Name="Series 2" LabelTypeName="Bar3DSeriesLabel" PointOptionsTypeName="PointOptions" SeriesViewTypeName="SideBySideBar3DSeriesView">
<View HiddenSerializableString="to be serialized"></View>

<Label HiddenSerializableString="to be serialized" Visible="False" OverlappingOptionsTypeName="OverlappingOptions">
<FillStyle FillOptionsTypeName="SolidFillOptions">
<Options HiddenSerializableString="to be serialized"></Options>
</FillStyle>
</Label>

<PointOptions HiddenSerializableString="to be serialized"></PointOptions>

<LegendPointOptions HiddenSerializableString="to be serialized"></LegendPointOptions>
</cc1:Series>
</SeriesSerializable>







<Diagram 
                        RotationMatrixSerializable="0.766044443118978;-0.219846310392954;0.604022773555054;0;0;0.939692620785908;0.342020143325669;0;-0.642787609686539;-0.262002630229385;0.719846310392954;0;0;0;0;1">
<AxisX>
<GridLines Visible="True"></GridLines>

<Range SideMarginsEnabled="True"></Range>
</AxisX>

<AxisY>
<Range SideMarginsEnabled="True"></Range>
</AxisY>
</Diagram>

<FillStyle FillOptionsTypeName="SolidFillOptions">
<Options HiddenSerializableString="to be serialized"></Options>
</FillStyle>
        





<Titles>
<cc1:ChartTitle></cc1:ChartTitle>
</Titles>







</dxchartsui:WebChartControl>
                     
 


                     
 



                     
 <dxchartsui:WebChartControl ID="WebChartControl3" runat="server" 
            DiagramTypeName="XYDiagram" Height="200px" Width="300px">
            




<SeriesSerializable>
            
                




<cc1:Series labeltypename="PointSeriesLabel" name="Series 1" 
                    pointoptionstypename="PointOptions" seriesviewtypename="SplineSeriesView">
                    




<view coloreach="True" hiddenserializablestring="to be serialized"></view>
                    









<label antialiasing="True" hiddenserializablestring="to be serialized" 
                        overlappingoptionstypename="PointOverlappingOptions">
<fillstyle filloptionstypename="SolidFillOptions">
<options hiddenserializablestring="to be serialized"></options>
</fillstyle>
</label>
                    









<pointoptions hiddenserializablestring="to be serialized"></pointoptions>
                    









<legendpointoptions hiddenserializablestring="to be serialized"></legendpointoptions>
                




</cc1:Series>
            




</SeriesSerializable>
            









<SeriesTemplate LabelTypeName="PointSeriesLabel" 
                PointOptionsTypeName="PointOptions" SeriesViewTypeName="SplineSeriesView">
                




<View HiddenSerializableString="to be serialized">
                </View>
                









<Label HiddenSerializableString="to be serialized" 
                    OverlappingOptionsTypeName="PointOverlappingOptions">
                    




<FillStyle FillOptionsTypeName="SolidFillOptions">
                        




<Options HiddenSerializableString="to be serialized" />
                    




</FillStyle>
                




</Label>
                









<PointOptions HiddenSerializableString="to be serialized">
                </PointOptions>
                









<LegendPointOptions HiddenSerializableString="to be serialized">
                </LegendPointOptions>
            




</SeriesTemplate>
            





<Diagram>
                


                




            



<axisx visibleinpanesserializable="-1" interlaced="True" 
        interlacedcolor="PapayaWhip">
<Label Staggered="True"></Label>

<range sidemarginsenabled="True"></range>
</axisx>

<axisy visibleinpanesserializable="-1">
<range sidemarginsenabled="True"></range>
</axisy>


</Diagram>
<BorderOptions Visible="False"></BorderOptions>







<FillStyle FillOptionsTypeName="SolidFillOptions">
<Options HiddenSerializableString="to be serialized"></Options>
</FillStyle>
            









<Legend Antialiasing="True">
                




<Border Visible="False" />
            




</Legend>
        




</dxchartsui:WebChartControl>

                     


                     </ext:ContentPanel> 
                    </Items>
                </ext:FormRow>
            </Rows>
           
                </ext:Form>
               
        <ext:Window runat="server" ID="form2" IsModal="false" Hidden="true"  EnableBackgroundColor="true"  Width="500px" Height="400px" Title="数据视图">
        <Items>
            <ext:Grid runat="server" ID="gv_List"  AutoHeight="true" AutoWidth="true" IsDatabasePaging="false" AllowPaging="true" ShowHeader="false" OnPageIndexChange="gv_List_PageIndexChange" >
            <Columns>
                <ext:BoundField ColumnID="TimeSpin" DataField="TimeSpin" HeaderText="统计项" />
                <ext:BoundField ColumnID="Sales" DataField="Sales" HeaderText="销售额" />
                <ext:BoundField ColumnID="ProductCost" DataField="ProductCost" HeaderText="产品成本" />
                <ext:BoundField ColumnID="MainProfit" DataField="MainProfit" HeaderText="毛利润" />
                <ext:BoundField ColumnID="Profit" DataField="Profit" HeaderText="纯利润" />
            </Columns>
        </ext:Grid>
        </Items>
       </ext:Window>        
        </div>
        <script type="text/javascript">
            function GetPosition() {
              
                var wform = Ext.getCmp('<%= form2.ClientID %>');
                wform.x = Ext.getBody().getWidth() - 505;
                wform.y = 235;
                wform.show();
            }
            function GetPosition2() {

                var wform = Ext.getCmp('<%= form2.ClientID %>');
                wform.hide();
            } 
        </script>
    </form>
</body>
</html>
